/*
 * @Descripttion:
 * @version:
 * @Author: 十三
 * @Date: 2022-11-30 18:15:30
 * @LastEditors: 十三
 * @LastEditTime: 2022-12-22 15:14:09
 */
// import { SFCWithInstall } from 'element-plus/lib/utils';
import * as components from '@element-plus/icons-vue';
import { useSFCWithInstall } from 'co-utils-vue';
import type { App } from 'vue';

import CoSvg from './index.vue';
// @ts-ignore
CoSvg.install = (app: App) => {
  app.component(CoSvg.name, CoSvg);
  // @ts-ignore
  Object.keys(components).forEach(key => {
    const componentConfig = components[key];
    app.component(componentConfig.name, componentConfig);
  });
};
export default CoSvg as useSFCWithInstall<typeof CoSvg>;
